package com.onlyphoto.onlymall.mvp.contract

import com.onlyphoto.onlymall.base.IBasePresenter
import com.onlyphoto.onlymall.base.IBaseView
import com.onlyphoto.onlymall.bean.ShopBean
import com.onlyphoto.onlymall.bean.request.ShopCartDeleteBean
import com.onlyphoto.onlymall.bean.request.UpdateShopBean
import com.onlyphoto.onlymall.bean.response.GoodsDetailsBean


interface CShop {

    interface IPMall : IBasePresenter {
        fun getShoppingCart()
        fun updateShoppingCart(bean: UpdateShopBean)
        fun delete()
        fun getDetails(id: Int)
    }

    interface IVMall : IBaseView {
        fun getShoppingCartSuccess(list: ArrayList<ShopBean>)
        fun updateShoppingCartSuccess()
        fun updateShoppingCartFail()
        fun getDeleteEntity() : ShopCartDeleteBean
        fun deleteSuccess()
        fun showEmpty()
        fun updateView()
        fun getDetailsSuccess(bean: GoodsDetailsBean)
        fun isLogin(): Boolean
        fun showLogin()
        fun showMsg(msg: String)
    }
}
